<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>

<head>
    <!-- 页面meta -->
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>添加学生</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" name="viewport">
  
    <link rel="stylesheet" href="${pageContext.request.contextPath}/plugins/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/plugins/adminLTE/css/AdminLTE.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/plugins/adminLTE/css/skins/_all-skins.min.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/style.css">
	<script src="${pageContext.request.contextPath}/plugins/jQuery/jquery-2.2.3.min.js"></script>
    <script src="${pageContext.request.contextPath}/plugins/bootstrap/js/bootstrap.min.js"></script>
    
    <!-- 富文本编辑器 -->
	<link rel="stylesheet" href="${pageContext.request.contextPath}/plugins/kindeditor/themes/default/default.css" />
	<script charset="utf-8" src="${pageContext.request.contextPath}/plugins/kindeditor/kindeditor-min.js"></script>
	<script charset="utf-8" src="${pageContext.request.contextPath}/plugins/kindeditor/lang/zh_CN.js"></script>
    	
</head>

<body class="hold-transition skin-red sidebar-mini" >
			<form action="${pageContext.request.contextPath}/student/saveStudent" method="post">
            <!-- 正文区域 -->
            <section class="content">

                <div class="box-body">

                    <!--tab页-->
                    <div class="nav-tabs-custom">

                        <!--tab头-->
                        <ul class="nav nav-tabs">                       		
                            <li class="active">
                                <a href="#home" data-toggle="tab">添加学生</a>
                            </li>   
                        </ul>
                        <!--tab头/-->
						
                        <!--tab内容-->
                        <div class="tab-content">
						
                            <!--表单内容-->
                            <div class="tab-pane active" id="home">
                                <div class="row data-type">                                  
								   <div class="col-md-2 title">学号</div>
		                           	  <div class="col-md-10 data">
                           					<input type="text" class="form-control" placeholder="如：201701" name="sid" required="required">
		                              </div>	                              
		                          	  
		                           <div class="col-md-2 title">姓名</div>
		                           <div class="col-md-10 data">
		                               <input type="text" class="form-control" name="sname" required="required">
		                           </div>
		                           
								<div class="col-md-2 title">专业</div>
		                           <div class="col-md-10 data">
		                           	   <%--<div class="input-group">--%>
			                          	  <!--  <span class="input-group-addon">¥</span> -->
			                               <input type="text" class="form-control" name="major" required="required">
		                           	   <%--</div>--%>
		                          </div>
								   <div class="col-md-2 title">Java成绩</div>
		                           <div class="col-md-10 data">
		                               <input type="text" class="form-control" name="javagrade" required="required">
		                           </div>

                                    <div class="col-md-2 title">数据库成绩</div>
                                    <div class="col-md-10 data">
                                        <input type="text" class="form-control" name="databasegrade" required="required">
                                    </div>
		                           <table>
		                           	  		<!-- <tr>
		                           	  			<td>
					                              	<select class="form-control" name="status"> 
															<option value="使用中">使用中</option>
															<option value="未使用">未使用</option>
													</select>
												</td>
											</tr> -->
									</table>
		                           </div>
		                          </div>
                           		</div>
						</div>	 
                    </div>
                 	
                 	
                 	
                 	
                   </div>
                   <!--  定义一个提交按钮，按钮名为保存.value(对于 "text"、"password"、"hidden" 类型 - 定义输入字段的初始（默认）值)-->
                  <div class="btn-toolbar list-toolbar">
                  	           	<input  class="btn btn-primary"  type="submit" value="添加">
                  	           	<input  class="btn btn-primary"  type="reset" value="清空">
				      <!-- <button class="btn btn-primary" onclick="update()">11</button> -->
				      <!-- <button class="btn btn-default" >返回列表</button> -->
				  </div>
			 	
            </section>
            </form>

            <%--显示错误消息--%>
            <div class="col-md-10 data">
                <span style="color: red">${saveError}</span>
            </div>
       
</body>

</html>